const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.avatar, // 头像
  name: state => state.user.userInfo.username, // 用户名
  routes: state =>state.user.routes, // 路由信息
  role: state => state.user.userInfo.roleId  // 获取用户的角色
}
// getters便捷访问
export default getters
